//
//  RegimenDetailTableViewCell.m
//  味·道
//
//  Created by lanou3g on 15/7/1.
//  Copyright (c) 2015年 WMR. All rights reserved.
//

#import "RegimenDetailTableViewCell.h"

@implementation RegimenDetailTableViewCell
- (void)dealloc
{
    self.ImageView = nil;
    self.label = nil;
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 5, 30, 30)];
        imageView.backgroundColor = [UIColor greenColor];
        imageView.layer.masksToBounds = YES;
        imageView.layer.cornerRadius = 15;
        self.ImageView = imageView;
        [self.contentView addSubview:self.ImageView];
        [imageView release];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(42, 10, 200, 20)];
        self.label = label;
        [self.contentView addSubview:self.label];
        [label release];
        UILabel *numberlabel = [[UILabel alloc] initWithFrame:CGRectMake(3, 5, 25, 20)];
        numberlabel.textColor = [UIColor whiteColor];
        numberlabel.textAlignment = NSTextAlignmentCenter;
        numberlabel.font = [UIFont boldSystemFontOfSize:18.0f];
        self.numberLabel = numberlabel;
        [self.ImageView addSubview:self.numberLabel];
        [numberlabel release];
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;//右箭头
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
